package com.woniu.sale.entity;

import java.io.Serializable;

/**
 * Pur_RequestReturnDetail
 * @author 
 */
public class PurRequestreturndetailKey implements Serializable {
    private String beforepurchasertnno;

    private Integer beforepurchasertnlno;

    private static final long serialVersionUID = 1L;

    public String getBeforepurchasertnno() {
        return beforepurchasertnno;
    }

    public void setBeforepurchasertnno(String beforepurchasertnno) {
        this.beforepurchasertnno = beforepurchasertnno;
    }

    public Integer getBeforepurchasertnlno() {
        return beforepurchasertnlno;
    }

    public void setBeforepurchasertnlno(Integer beforepurchasertnlno) {
        this.beforepurchasertnlno = beforepurchasertnlno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PurRequestreturndetailKey other = (PurRequestreturndetailKey) that;
        return (this.getBeforepurchasertnno() == null ? other.getBeforepurchasertnno() == null : this.getBeforepurchasertnno().equals(other.getBeforepurchasertnno()))
            && (this.getBeforepurchasertnlno() == null ? other.getBeforepurchasertnlno() == null : this.getBeforepurchasertnlno().equals(other.getBeforepurchasertnlno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBeforepurchasertnno() == null) ? 0 : getBeforepurchasertnno().hashCode());
        result = prime * result + ((getBeforepurchasertnlno() == null) ? 0 : getBeforepurchasertnlno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", beforepurchasertnno=").append(beforepurchasertnno);
        sb.append(", beforepurchasertnlno=").append(beforepurchasertnlno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}